QT       += core gui charts

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    CANCard/GC/CANPar.cpp \
    CANCard/GC/canreadthread.cpp \
    CANCard/GC/cansdthread.cpp \
    CANCard/GC/canset.cpp \
    equ_include/QY_BMS_Data.cpp \
    equ_include/selffun.cpp \
    main.cpp \
    mainwindow.cpp \
    qycvm_operfun.cpp

HEADERS += \
    CANCard/GC/CANPar.h \
    CANCard/GC/ECanVci.h \
    CANCard/GC/canreadthread.h \
    CANCard/GC/cansdthread.h \
    CANCard/GC/canset.h \
    CANCard/GC/typedef.h \
    equ_include/QY_BMS_Data.h \
    equ_include/selffun.h \
    mainwindow.h \
    qycvm_operfun.h

FORMS += \
    CANCard/GC/canset.ui \
    mainwindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

DISTFILES += \
    CANCard/GC/ECanVci.dll \
    CANCard/GC/ECanVci.lib

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/CANCard/GC/ -lECanVci
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/CANCard/GC/ -lECanVci


RC_ICONS = logo.ico

RESOURCES += \
    resources.qrc
